#!/usr/bin/perl -w
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use OnTheBeachDB;

my $version = OnTheBeachDB->schema_version;

OnTheBeachDB->connect->create_ddl_dir(
    ['MySQL'],
    $version > 1 ? $version : undef,
    'sql',
    $version ? $version-1 : $version
);